package cs4280.ass2.entity;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

public class ScheduleSeatDetail extends AuditableEntity {
	private static final long serialVersionUID = 1L;

	private long scheduleId;
	private String seatStatus;
	private String row;
	private int col;
	
	public static final String SEAT_STATUS_SOLD = "SEAT_STATUS_SOLD";
	public static final String SEAT_STATUS_AVAILABLE = "SEAT_STATUS_AVAILABLE";
	public static final String SEAT_STATUS_RESERVED = "SEAT_STATUS_RESERVED";
	public static final String SEAT_STATUS_PROCESSING = "SEAT_STATUS_PROCESSING";

	public ScheduleSeatDetail() {
		// TODO Auto-generated constructor stub
	}

	public ScheduleSeatDetail(long scheduleId, String row, int col, String seatStatus) {
		super();
		this.scheduleId = scheduleId;
		this.row = row;
		this.col = col;
		this.seatStatus = seatStatus;
	}

	public void setScheduleId(long scheduleId) {
		this.scheduleId = scheduleId;
	}

	public long getScheduleId() {
		return scheduleId;
	}

	public void setSeatStatus(String seatStatus) {
		this.seatStatus = seatStatus;
	}

	public String getSeatStatus() {
		return seatStatus;
	}

	@Override
	public String toString() {
		ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE);
		builder.append("id", this.getId());
		builder.append("scheduleId", this.getScheduleId());
		builder.append("seatStatus", this.getSeatStatus());
		builder.append("row", this.getRow());
		builder.append("col", this.getCol());
		builder.append("createUser", this.getCreateUser());
		builder.append("modifyDate", this.getModifyDate());
		builder.append("modifyUser", this.getModifyUser());
		return builder.toString();
	}

	public void setRow(String row) {
		this.row = row;
	}

	public String getRow() {
		return row;
	}

	public void setCol(int col) {
		this.col = col;
	}

	public int getCol() {
		return col;
	}
}
